//package com.mk.Config;
//
//import com.mk.interceptor.Myinterceptor;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
//
//@Configuration
//public class myConfig implements WebMvcConfigurer {
////    @Override
////    public void addInterceptors(InterceptorRegistry registry) {
////        registry.addInterceptor(new Myinterceptor())
////                .addPathPatterns("/**")//需拦截路径
////                .excludePathPatterns("");//放行路径
////    }
//}
